﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Schema;

namespace Demo12_1_4
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Test();
            Console.WriteLine("1 对象已分配，看托管堆");
            Debugger.Break();
            GC.Collect();
            Console.WriteLine("2 GC_OK，看byte2");
            Debugger.Break();

            Console.WriteLine("3 分配byte4,看是否在free块");
            var byte4 = new byte[280000];
            Debugger.Break();
        }

        public static byte[] b1;
        public static byte[] b3;
        static void Test() 
        {
            b1 = new byte[185000];
            var b2 = new byte[285000];
            b3 = new byte[385000];
        }
    }
}
